package com.woniuxy.yoga.progress.client;


import com.woniuxy.yoga.commons.core.model.Result;
import com.woniuxy.yoga.feign.config.FeignConfig;
import com.woniuxy.yoga.progress.model.dto.Coach;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "coach-service",configuration = FeignConfig.class,path = "/coach")
public interface CoachClient {

    /**
     * 通过id查询教练
     * @param coachId 教练id
     * @return CoachDTO
     */
    @GetMapping("/coach/getById/{coachId}")
    Result<Coach> getByCoachId(@PathVariable("coachId") Integer coachId);
}
